package com.easylinkin.linkappapi.openapi.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName(value = "linkapp_real_time_weather")
@ApiModel("实时天气实体类")
public class RealTimeWeather {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;

    /**
     * 城市名称
     */
    @ApiModelProperty("城市名称")
    @TableField(value = "city")
    private String city;

    /**
     * 城市码
     */
    @ApiModelProperty("城市码")
    @TableField(value = "city_code")
    private String cityCode;

    /**
     * 湿度
     */
    @ApiModelProperty("湿度")
    @TableField(value = "shidu")
    private String shidu;

    /**
     * 风力
     */
    @ApiModelProperty("风力")
    @TableField(value = "fengli")
    private String fengli;

    /**
     * 风向
     */
    @ApiModelProperty("风向")
    @TableField(value = "fengxiang")
    private String fengxiang;

    /**
     * 温度
     */
    @ApiModelProperty("温度")
    @TableField(value = "wendu")
    private String wendu;

    /**
     * 高温
     */
    @ApiModelProperty("高温")
    @TableField(value = "high")
    private String high;

    /**
     * 低温
     */
    @ApiModelProperty("低温")
    @TableField(value = "low")
    private String low;

    /**
     * 夜晚天气状态
     */
    @ApiModelProperty("夜晚天气状态")
    @TableField(value = "night_type")
    private String nightType;

    /**
     * 白天天气状态
     */
    @ApiModelProperty("白天天气状态")
    @TableField(value = "day_type")
    private String dayType;

    /**
     * 采集时间
     */
    @ApiModelProperty("采集时间")
    @TableField(value = "updatetime")
    private String updatetime;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "createtime")
    private LocalDateTime createtime;

    @ApiModelProperty("查询开始时间")
    @TableField(exist = false)
    private Date quertStartTime;

    @ApiModelProperty("查询结束时间")
    @TableField(exist = false)
    private Date quertEndTime;
}